package air2.totc.messaging;

public class Message 
{
	protected String rawText;		// Texte brut
	protected String message;		// Message final
	private long id_sms;			// id du message sur la BD
	private long id_contact;		// id du contact qui a envoyé le sms
	private String sms;				// Contenu du message dans la BD
	private int crypto_type;		// type de cryptage utilisé pour le message
	private int etat ;
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	public long getId_sms() {
		return id_sms;
	}

	public void setId_sms(long id_sms) {
		this.id_sms = id_sms;
	}

	public long getId_contact() {
		return id_contact;
	}

	public void setId_contact(long id_contact) {
		this.id_contact = id_contact;
	}

	public String getSms() {
		return sms;
	}

	public void setSms(String sms) {
		this.sms = sms;
	}

	public int getCrypto_type() {
		return crypto_type;
	}

	public void setCrypto_type(int crypto_type) {
		this.crypto_type = crypto_type;
	}
	// Will be used by the ArrayAdapter in the ListView
	@Override
	public String toString() {
		return sms;
	}

	public int getEtat() {
		return etat;
	}

	public void setEtat(int etat) {
		this.etat = etat;
	}
	
}
